package com.zhongxiangspace.entity.VO;

import com.zhongxiangspace.entity.Permissions;

import java.io.Serializable;
import java.util.List;

/**
 * 权限
 */
public class PermissionsVO implements Serializable {

    //id
    private Integer id;
    //名称
    private String name;
    //访问的url
    private String url;
    //父级id,顶级默认0
    private Integer parent_id;

    private List<PermissionsVO> permissionsList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<PermissionsVO> getPermissionsList() {
        return permissionsList;
    }
    public void setPermissionsList(List<PermissionsVO> permissionsList) {
        this.permissionsList = permissionsList;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Permissions{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", parent_id=").append(parent_id);
        sb.append('}');
        return sb.toString();
    }
}
